package backend.service.worklog;

import backend.model.admin.Employee;
import backend.model.admin.Foreman;
import backend.model.admin.Team;
import backend.model.worklog.WorkLog;
import backend.service.base.DBModelService;

import java.util.Date;
import java.util.List;

public interface WorkLogService extends DBModelService<WorkLog> {

    public List<WorkLog> loadWorkLogForDateAndEmployee(Employee employee, Date date);
    public List<WorkLog> loadWorkLogForTimeInterval(Date startDate, Date endDate);
    public List<WorkLog> loadWorkLogOfCommutersForTimeInterval(Date startDate, Date endDate);
    public List<WorkLog> loadWorkLogForTimeIntervalAndEmployee(Employee employee, Date startDate, Date endDate);
    public List<WorkLog> loadWorkLogForTimeIntervalAndTeam(Team team, Date startDate, Date endDate);
    public List<WorkLog> loadWorkLogForDateAndForemanList(Date date, List<Foreman> foremenList);
    public WorkLog loadLatestWorkLogForEmployee(Employee employee);
}
